<?php
namespace Home\Controller;
use Common\Controller\FirstendController;

class TmallController extends FirstendController {

    public function index() {
        
        $_m=M('Items');
		$p = I('p',1, 'intval');

        $where['shop_type']='B';
		$items_list=$_m->where($where)->page($p.',60')->select();
		$this->assign('items_list',$items_list);
        $pager = $this->_pager($_m->where($where)->count(), '60');
        $this->assign('page', $pager->kshow());
		$this->assign('sort', $sort);
        $this->assign('nav_curr', 'tmall');
        $this->_config_seo(array(
			'title' => '商城优选 — 精选最值得买的爆款商品 — ',
			'keywords' => '天猫商城,tmall',
			'description' => '为您提供天猫商城优质商品' ,
		));
        $this->display();
    }

}